Skip to content

Conversation

jwbee
Copy link

@jwbee jwbee commented May 25, 2025

I noticed in the profiles of my workload that EncodeCharToUTF8Bytes was extremely hot, and that virtually all of the cost was in the function prologue and epilogue because the inputs are all ASCII. This PR adds a hot path for ASCII that is small enough to inline at all the call sites, with a fallback to the existing function when necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant